<?php
// +-----------------------+
// | 注释不留名，代码随便用 |
// +-----------------------+


namespace app\common\library\goods\state;


use app\common\library\goods\State;

class Down extends State
{
    public function setNextState()
    {
        $this->nextState = new Back($this->goods);
    }

    public function isDuty(): bool
    {
        return $this->goods['status'] == GOODS_STATUS_DOWN;
    }
}